LanguageExt.Core

LanguageExt.Core TypeClasses Floating

Contents

interface Floating <A> Source #

Floating point number type-class

Parameters

type A

The floating point value type

class TypeClass Source #

Methods

method Ratio<A> Ratio <A> (A num, A den) Source #

Ratio constructor

Parameters

type A

Value type

param num

Numerator

param den

Denominator

returns

Ratio struct

method A pi <FLOAT, A> () Source #

where FLOAT : struct, Floating<A>

Returns an approximation of pi.

Parameters

returns

A reasonable approximation of pi in this type

method A exp <FLOAT, A> (A x) Source #

where FLOAT : struct, Floating<A>

The exponential function.

Parameters

param x

The value for which we are calculating the exponential

returns

method A sqrt <FLOAT, A> (A x) Source #

where FLOAT : struct, Floating<A>

Calculates the square root of a value.

Parameters

param x

The value for which we are calculating the square root.

returns

.

method A log <FLOAT, A> (A x) Source #

where FLOAT : struct, Floating<A>

Calculates the natural logarithm of a value.

Parameters

param x

The value for which we are calculating the natural logarithm.

returns

.

method A pow <FLOAT, A> (A x, A y) Source #

where FLOAT : struct, Floating<A>

Raises x to the power y

Parameters

param x

The base to be raised to y

param y

The exponent to which we are raising x

returns

.

method A logBase <FLOAT, A> (A x, A y) Source #

where FLOAT : struct, Floating<A>

Calculates the logarithm of a value with respect to an arbitrary base.

Parameters

param b

The base to use for the logarithm of x

param x

The value for which we are calculating the logarithm.

returns

.

method A sin <FLOAT, A> (A x) Source #

where FLOAT : struct, Floating<A>

Calculates the sine of an angle.

Parameters

param x

An angle, in radians

returns

method A cos <FLOAT, A> (A x) Source #

where FLOAT : struct, Floating<A>

Calculates the cosine of an angle.

Parameters

param x

An angle, in radians

returns

method A tan <FLOAT, A> (A x) Source #

where FLOAT : struct, Floating<A>

Calculates the tangent of an angle.

Parameters

param x

An angle, in radians

returns

method A asin <FLOAT, A> (A x) Source #

where FLOAT : struct, Floating<A>

Calculates an arcsine.

Parameters

param x

The value for which an arcsine is to be calculated.

returns

, in radians.

method A acos <FLOAT, A> (A x) Source #

where FLOAT : struct, Floating<A>

Calculates an arc-cosine.

Parameters

param x

The value for which an arc-cosine is to be calculated

returns

, in radians

method A atan <FLOAT, A> (A x) Source #

where FLOAT : struct, Floating<A>

Calculates an arc-tangent.

Parameters

param x

The value for which an arc-tangent is to be calculated

returns

, in radians

method A sinh <FLOAT, A> (A x) Source #

where FLOAT : struct, Floating<A>

Calculates a hyperbolic sine.

Parameters

param x

The value for which a hyperbolic sine is to be calculated

returns

method A cosh <FLOAT, A> (A x) Source #

where FLOAT : struct, Floating<A>

Calculates a hyperbolic cosine.

Parameters

param x

The value for which a hyperbolic cosine is to be calculated

returns

method A tanh <FLOAT, A> (A x) Source #

where FLOAT : struct, Floating<A>

Calculates a hyperbolic tangent.

Parameters

param x

The value for which a hyperbolic tangent is to be calculated.

returns

method A asinh <FLOAT, A> (A x) Source #

where FLOAT : struct, Floating<A>

Calculates an area hyperbolic sine

Parameters

param x

The value for which an area hyperbolic sine is to be calculated.

returns

.

method A acosh <FLOAT, A> (A x) Source #

where FLOAT : struct, Floating<A>

Calculates an area hyperbolic cosine.

Parameters

param x

The value for which an area hyperbolic cosine is to be calculated.

returns

.

method A atanh <FLOAT, A> (A x) Source #

where FLOAT : struct, Floating<A>

Calculates an area hyperbolic tangent.

Parameters

param x

The value for which an area hyperbolic tangent is to be calculated.

returns